package com.tanhua.manager.controller;

import com.tanhua.domain.vo.AnalysisSummaryVo;
import com.tanhua.manager.service.AnalysisByDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dashboard")
///
public class DashboardController {

    @Autowired
    private AnalysisByDayService analysisByDayService;
//    概要统计信息
//    请求方式 get
//     请求地址 /dashboard/summary
//    请求参数 token
//      返回类型 Vo
    @GetMapping(value = "/summary",name = "概要统计信息")
    public ResponseEntity summary(){


      return   analysisByDayService.summary();
    }

}
